def pascal_triangle_based_generator(level_count=10):
    sequence = [1]
    for index in range(1, level_count + 1):
        if index == 1:
            yield sequence
        else:
            current_sequence = [1]
            left_num = 1
            for item in sequence[1:]:
                current_sequence.append(left_num + item)
                left_num = item
            current_sequence.append(1)
            sequence = current_sequence
            yield sequence

if __name__ == "__main__":
    pascaler = pascal_triangle_based_generator(level_count=10)
    for item in pascaler:
        print(" ", f"{item}".center(40, " "))
